﻿using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;

namespace SocketCore.Common;

/// <summary>
/// 已经连接的客户端
/// </summary>
internal class ConnectClient
{
    /// <summary>
    /// 套接字
    /// </summary>
    internal Socket socket { get; set; } = null!;
    /// <summary>
    /// 接受端SocketAsyncEventArgs对象
    /// </summary>
    internal SocketAsyncEventArgs saea_receive { get; set; } = null!;
    /// <summary>
    /// 每隔10秒扫描次数,用于检查客户端是否存活
    /// </summary>
    internal int keep_alive { get; set; }
    /// <summary>
    /// 附加数据
    /// </summary>
    public object attached { get; set; } = null!;
}

